package de.derhess.projects.pkr.models
{
	import flash.events.Event;
	import flash.events.EventDispatcher;
	
	
	/**
	 * released under MIT License (X11)
	 * http://www.opensource.org/licenses/mit-license.php
	 * 
	 * Class  PKROutOfCourt
	 * 
	 * @author Florian Weil [derhess.de, Deutschland]
	 * @see http://blog.derhess.de
	 */
	[Bindable]
	public class PKRCourtLawyerCost extends EventDispatcher
	{
		//--------------------------------------------------------------------------
		//
		//  Class variables
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Variables
		//
		//--------------------------------------------------------------------------
		
		//--------------------------------------------------------------------------
		//
		//  Initialization
		//
		//--------------------------------------------------------------------------
		public function PKRCourtLawyerCost()
		{
			ownLawyer = new LawyerCost();
			enemyLawyer = new LawyerCost();
			courtCost = new CourtCost();
		}
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Properties
		//
		//--------------------------------------------------------------------------
		public var ownLawyer:LawyerCost;
		public var enemyLawyer:LawyerCost;
		public var courtCost:CourtCost;
		

		public var vatSum:Number = 0;
		public var allCostSum:Number = 0;
		
		public var instanceSum:Number = 0;
		public var appeal1Sum:Number = 0;
		public var appeal2Sum:Number = 0;
		
		
		//--------------------------------------------------------------------------
		//
		//  Additional getters and setters
		//
		//--------------------------------------------------------------------------
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Methods
		//
		//--------------------------------------------------------------------------
		override public function toString():String 
		{
			return "[PKRCourtLawyerCost] : " + "ownLawyer: " + ownLawyer.toString() + " enemyLawyer: " + enemyLawyer.toString() + " courtCost: " + courtCost + " instanceSum: " + instanceSum + " appeal1Sum: " + appeal1Sum + " appeal2Sum: " + appeal2Sum + " vat: " + vatSum + " allCostSum: " + allCostSum;
		}
		//--------------------------------------------------------------------------
		//
		//  API
		//
		//--------------------------------------------------------------------------
		
		
		
		//--------------------------------------------------------------------------
		//
		//  Eventhandling
		//
		//--------------------------------------------------------------------------
		
		
		//--------------------------------------------------------------------------
		//
		//  Broadcasting
		//
		//--------------------------------------------------------------------------
		
		
	}
}